package com.zp.demo.service;

import com.zp.demo.repush.RePushUtils;
import com.zp.demo.repush.anno.RePushAnno;
import com.zp.demo.repush.service.impl.IsSucessNotNull;
import org.springframework.stereotype.Service;

@Service
public class SendDataService {
    @RePushAnno
    public String sendSSS(String businessId) throws RuntimeException{
        try {
            Integer.parseInt(businessId);
        }catch (Exception e){
            String[] aa = {businessId};
            RePushUtils.throwException(aa,e.getClass().getName(),"sss",new IsSucessNotNull());
        }
        return "成功了啦";
    }
}
